package com.ruoyi.nucleicacid.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.nucleicacid.mapper.HouseholdertaskMapper;
import com.ruoyi.nucleicacid.domain.Householdertask;
import com.ruoyi.nucleicacid.service.IHouseholdertaskService;

/**
 * 住户核酸任务Service业务层处理
 * 
 * @author kun
 * @date 2022-10-07
 */
@Service
public class HouseholdertaskServiceImpl implements IHouseholdertaskService 
{
    @Autowired
    private HouseholdertaskMapper householdertaskMapper;

    /**
     * 查询住户核酸任务
     * 
     * @param id 住户核酸任务主键
     * @return 住户核酸任务
     */
    @Override
    public Householdertask selectHouseholdertaskById(Long id)
    {
        return householdertaskMapper.selectHouseholdertaskById(id);
    }

    /**
     * 查询住户核酸任务列表
     * 
     * @param householdertask 住户核酸任务
     * @return 住户核酸任务
     */
    @Override
    public List<Householdertask> selectHouseholdertaskList(Householdertask householdertask)
    {
        return householdertaskMapper.selectHouseholdertaskList(householdertask);
    }

    /**
     * 新增住户核酸任务
     * 
     * @param householdertask 住户核酸任务
     * @return 结果
     */
    @Override
    public int insertHouseholdertask(Householdertask householdertask)
    {
        return householdertaskMapper.insertHouseholdertask(householdertask);
    }

    /**
     * 修改住户核酸任务
     * 
     * @param householdertask 住户核酸任务
     * @return 结果
     */
    @Override
    public int updateHouseholdertask(Householdertask householdertask)
    {
        return householdertaskMapper.updateHouseholdertask(householdertask);
    }

    /**
     * 批量删除住户核酸任务
     * 
     * @param ids 需要删除的住户核酸任务主键
     * @return 结果
     */
    @Override
    public int deleteHouseholdertaskByIds(Long[] ids)
    {
        return householdertaskMapper.deleteHouseholdertaskByIds(ids);
    }

    /**
     * 删除住户核酸任务信息
     * 
     * @param id 住户核酸任务主键
     * @return 结果
     */
    @Override
    public int deleteHouseholdertaskById(Long id)
    {
        return householdertaskMapper.deleteHouseholdertaskById(id);
    }
}
